﻿using DevExpress.XtraBars;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace DXApplicationTangche.UC.圣同润.会销
{
    public partial class Form会销 : DevExpress.XtraBars.FluentDesignSystem.FluentDesignForm
    {
        public Form会销()
        {
            InitializeComponent();
        }

        private void accordionControlElement3_Click(object sender, EventArgs e)
        {
            this.initPanelUC(new UC商品清单());
        }

        private void initPanel(Form frm)
        {
            this.fluentDesignFormContainer1.Controls.Clear();
            //指示窗体显示是否为顶级窗口
            frm.TopLevel = false;
            this.fluentDesignFormContainer1.Controls.Add(frm);
            frm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            frm.Dock = System.Windows.Forms.DockStyle.Fill;
            frm.Show();
        }

        private void initPanelUC(UserControl userControl)
        {
            this.fluentDesignFormContainer1.Controls.Clear();
            this.fluentDesignFormContainer1.Controls.Add(userControl);
            userControl.Dock = System.Windows.Forms.DockStyle.Fill;
            userControl.Show();
        }
    }
}
